<?php

declare(strict_types=1);

namespace App\Process;

use Swoole\Process;

class TestProcess
{
    public static function handle($server)
    {
        return new Process(function ($process) use ($server) {
            while (true) {
                \Co::sleep(1);
                var_dump(time());
            }
        }, false, 2, true);
    }
}